﻿using System;
using System.Collections.Generic;
using System.Data;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace QuanLyNhaSach.DataAccessLayer
{
    class GiaDAO
    {
        DataConnection connection = new DataConnection();
        public void CapNhatGia(string ma, string gia)
        {
            string cmd = "exec GIA_Update '{0}',{1}";
            connection.Write(String.Format(cmd,ma,gia));
        }

        public DataTable LayGiaSach(string ma)
        {
            return connection.Read("GIA_Get '" + ma + "'");
        }
    }
}
